All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sjl.Bind1stPredicate
Bind1stPredicate
class can wrap a Predicate2
class so that it appears as a Predicate1
.
Algo.find(list.begin(), list.end(), new Bind1stPredicate(new PredLessInteger(), new Integer(5)));The above example will return a iterator to the element in the list with a value less than 5.
Copyright © 1996 Finn Bock
public Bind1stPredicate(Predicate2 pred, Object val)
public boolean compare(Object o)
All Packages Class Hierarchy This Package Previous Next Index